<?php
require 'config.php';

$shop_id = $_REQUEST['shop_id'];
$sql = "select catId,catName,parentId from `" . $oto . "_shops_cats` where catFlag=1 and isShow=1 and shopId='{$shop_id}' and parentId='0' order by catSort ASC";
$result = $db->query($sql);
while ($row = $result->fetch_assoc()) {
    $person_info[] = $row; //将取得的所有数据赋值给person_info数组
}
echo json_encode($person_info);
